package cn.springdemo.service.impl;

import cn.springdemo.beans.User;
import cn.springdemo.dao.UserDao;
import cn.springdemo.dao.impl.UserDaoImpl;
import cn.springdemo.service.UserService;

public class UserServiceImpl implements UserService  {
    private UserDao userDao ;
    private Integer temp ;

    @Override
    public int addUser(User user) {
        userDao.addUser(user) ;
        return 0;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    public UserServiceImpl() {
    }

    public UserServiceImpl(UserDao userDao ) {
        this.userDao = userDao ;
    }

    public UserServiceImpl(UserDao userDao , Integer temp  ) {
        this.userDao = userDao ;
        this.temp = temp ;
    }


}
